home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Macintosh Tracker 1.20 / source / Tracker Client Folder / CRewindButton.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-22  |  586 b   |  30 lines  |  [TEXT/KAHL]

  1. /* CRewindButton.c */
  2.  
  3. #include "CRewindButton.h"
  4. #include "LocationConstants.h"
  5. #include "CWindow.h"
  6. #include "CMyDocument.h"
  7.  
  8.  
  9. void                CRewindButton::IRewindButton(CMyDocument* TheDocument, CWindow* TheWindow)
  10.     {
  11.         LongPoint            LocalStart,LocalExtent;
  12.  
  13.         Document = TheDocument;
  14.         GetRect(RewindIconLocID,&LocalStart,&LocalExtent);
  15.         IPicture(LocalStart,LocalExtent,NormalRewindPictID,HilitedRewindPictID,
  16.             0,0,TheWindow,TheWindow);
  17.     }
  18.  
  19.  
  20. void                CRewindButton::DoEnter(void)
  21.     {
  22.         Document->DoRewind(True);
  23.     }
  24.  
  25.  
  26. void                CRewindButton::DoLeave(void)
  27.     {
  28.         Document->DoRewind(False);
  29.     }
  30.